package com._51cto.healthy.service;

import com._51cto.healthy.base.BaseService;
import com._51cto.healthy.content.P;
import com._51cto.healthy.pojo.Sport;

import java.util.List;

//运动库
public interface SportService extends BaseService<Sport> {
    //查询运动列表
    P<Sport> findAll(String query,Integer pageSize,Integer pageNum);

    //删除运动
    @Override
    default void deleteByPK(Integer pk) {
        BaseService.super.deleteByPK(pk);
    }
    //查询运动
    List<Sport> searchByName(String query);
}
